﻿using System;

namespace Test.SysConsole
{
    public class B : A
    {
        private int x = 1;
        private int y;

        public B()
        {
            y = -1;
        }
        public override void VirtualA()
        {
            Console.WriteLine($"x={x}，y={y}");
        }
    }
}